
<% if (@customizations) %>
    <% if (@customizations.empty?)%>
        <% if (params[:customization]['name'].empty? || params[:customization]['model'].empty?)%>
            <%= javascript_tag("empty_best_fit_form_error();")%>  
        <%else%>
            <%= javascript_tag("best_fit_fail();")%>
        <%end%>
    <% else %>
        <%= javascript_tag("best_fit_success();")%>
            <div class= "button">
                    <%= button_to("Next", :action => "edit", 
                                   :template => "customizations/edit",
                                   :id => @customizations[0].id) %>
            </div>
            <div class="best_fit_img">
                  <%= image_tag("#{@customizations[0].image}")%>  
            </div>
    <%end%>
<%end %>
